﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Zebra.Umbraco.Marcos.Code.QuestionType
{
    [Serializable]
    public class CommentQuestion : Question
    {
        public CommentQuestion()
        {
            Width = 50;
            Height = 3;
        }
        protected override string GenerateBodyHTML()
        {
            return string.Format("<textarea id=\"{0}\" name=\"{0}\" rows=\"{1}\" cols=\"{2}\"></textarea>", string.Format("Answer_", QuestionID), Height, Width);
        }

        public override QuestionCatalog Catalog
        {
            get
            {
                return QuestionCatalog.CommentQuestion;
            }
        }

        #region properties
        public int Width
        {
            get;
            set;
        }

        public int Height
        {
            get;
            set;
        }
        #endregion
    }
}